
    $(function() {
	$('#btn').click(function(){
		var loginName=$('#loginName').val();
		var plainPassword=$('#plainPassword').val();
		var loginData={
				username:loginName,
				password:plainPassword
		};
		$.ajax({
				type: 'POST',
				contentType: 'application/json', 
				url: '/Ansteel_Test01/login/formLogin',
				data:loginData,
				dataType: 'json',
				success: function(data) {
					window.location.href="../loginSuccess/index.html";
					//console.log(data);
//					if(data!=null){
//
////						alert("保存成功!","提示");
//					}
				},
				error: function(data){
					alert("请求错误");
					console.log(data);
				} 
			});
})
    })
